﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ElfTyping.Animations;
using Microsoft.Xna.Framework;
using ElfTyping.General;

namespace ElfTyping.States
{
    public class TitleScreenState : State
    {
        Animation Background = new Animation(@"Textures\CG\Title");//, new Rectangle(247, 4, 240, 160));
        Rectangle View = new Rectangle(0, 0, 800, 600);

        public override void InitializeState()
        {
        }

        public override void Draw(General.Camera camera)
        {
            Background.Draw(camera, View);
        }

        public override void HandleInput(InputInfo inputInfo)
        {
            if (inputInfo.IsKeyJustPressed(GameKey.Use))
            {
                ChangeStateAfterTick(new CampState.CampState(), true);
            }
        }
    }
}
